﻿@model CloudFranceTriple.Models.ForumTopicSet
@{
    ViewBag.Title = String.Format("{0} - {1}", ViewBag.LabelForumCategory, CloudFranceTriple.WebRole.Properties.Resources.TopicEditTitle);
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="content-padding">
    <h1>@ViewBag.LabelForumCategory - @CloudFranceTriple.WebRole.Properties.Resources.TopicEditTitle</h1>
    <section>
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <fieldset>
                <legend>@ViewBag.LabelForumCategory - @CloudFranceTriple.WebRole.Properties.Resources.TopicEditTitle</legend>

                @Html.HiddenFor(model => model.Id)
                @Html.HiddenFor(model => model.OrderForumTopic)

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.CategoryLabel
                </div>
                <div class="editor-field">
                    @Html.DropDownList("ForumCategory_Id", String.Empty)
                    @Html.ValidationMessageFor(model => model.ForumCategory_Id)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.TopicLabel
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.LabelForumTopic)
                    @Html.ValidationMessageFor(model => model.LabelForumTopic)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.TopicIsUnlocked
                </div>
                <div class="display-field">
                    @Html.EditorFor(model => model.IsUnlocked)
                    @Html.ValidationMessageFor(model => model.IsUnlocked)
                </div>

                <div class="display-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.TopicAutor
                </div>
                <div class="display-field">
                    @Html.DisplayFor(model => model.AuthorForumTopic)
                    @Html.HiddenFor(model => model.AuthorForumTopic)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.TopicCreationDate
                </div>
                <div class="display-field">
                    @Html.DisplayFor(model => model.CreationDateForumTopic, "TemplateUserDateTime")
                    @Html.HiddenFor(model => model.CreationDateForumTopic)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.TopicNumberHasBeenSeen
                </div>
                <div class="display-field">
                    @Html.DisplayFor(model => model.NumberHasBeenSeenForumTopic)
                    @Html.HiddenFor(model => model.NumberHasBeenSeenForumTopic)
                </div>
                <p>
                    <input type="submit" value=" @CloudFranceTriple.WebRole.Properties.Resources.ButtonSave" />
                </p>
            </fieldset>
        }
        @Html.Partial("_BackToTopicByCategoryList")
        @section Scripts {
            @Scripts.Render("~/bundles/jqueryval")
        }
    </section>
</div>
